package com.liu.jackjson;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author LIU
 * @version 1.0
 * @description TODO
 * @date 2024/4/23 10:49
 */
@Data
public class Person {
    private Long id;
    private String name;
    @JsonProperty("address")
    private String addr;

    @JsonProperty("PROJECT_CODE")
    private String PROJECT_CODE;

    //
    @JsonIgnore
    private String pwd;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date registerDate;

    /**
     * 时间格式化+时区东八区
     * 已加全局配置
     */
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime birthDay;

}
